<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>事件绑定</title>
		<script src="../js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			数据展示：<h2 v-cloak="a">{{a}}</h2>
			<button @click="add()">自增函数</button>
			
			
		</div>
		<script>
		const app = new Vue({
			el:"#app",
			data:{
				a:0
			},
			methods:{
				add:function(){
					this.a=new(Date)
				}
			}
		})
		</script>
	</body>
</html>
